# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=i3status-rust
pkgver=0.14.1
pkgrel=0
pkgdesc="i3status replacement in Rust"
url="https://github.com/greshake/i3status-rust"
arch="all !s390x !mips !mips64"
license="GPL-3.0-only"
makedepends="rust cargo dbus-dev libpulse"
options="net !check" # no tests
provides="i3status-rs"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/greshake/i3status-rust/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --verbose --locked
}

package() {
	install -Dm755 target/release/i3status-rs "$pkgdir"/usr/bin/i3status-rs

	install -Dm644 man/i3status-rs.1 "$pkgdir"/usr/share/man/man1/i3status-rs.1
}
sha512sums="8e254ad75199b3d4f6320c4af09dc82cc8f9528458e8e639f063be6f35d3d266452c1f9aa080101a08df90b46146764c60b09a3a67f7e4c399c603e0b71f2ef9  i3status-rust-0.14.1.tar.gz"
